Optimal. Leaf size=163 \[ -\frac {256 c^4 \tan (e+f x) (a \sec (e+f x)+a)}{315 f \sqrt {c-c \sec (e+f x)}}-\frac {64 c^3 \tan (e+f x) (a \sec (e+f x)+a) \sqrt {c-c \sec (e+f x)}}{105 f}-\frac {8 c^2 \tan (e+f x) (a \sec (e+f x)+a) (c-c \sec (e+f x))^{3/2}}{21 f}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a) (c-c \sec (e+f x))^{5/2}}{9 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 163, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {3955, 3953} \[ -\frac {256 c^4 \tan (e+f x) (a \sec (e+f x)+a)}{315 f \sqrt {c-c \sec (e+f x)}}-\frac {64 c^3 \tan (e+f x) (a \sec (e+f x)+a) \sqrt {c-c \sec (e+f x)}}{105 f}-\frac {8 c^2 \tan (e+f x) (a \sec (e+f x)+a) (c-c \sec (e+f x))^{3/2}}{21 f}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a) (c-c \sec (e+f x))^{5/2}}{9 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3953
Rule 3955
Rubi steps
\begin {align*} \int \sec (e+f x) (a+a \sec (e+f x)) (c-c \sec (e+f x))^{7/2} \, dx &=-\frac {2 c (a+a \sec (e+f x)) (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{9 f}+\frac {1}{3} (4 c) \int \sec (e+f x) (a+a \sec (e+f x)) (c-c \sec (e+f x))^{5/2} \, dx\\ &=-\frac {8 c^2 (a+a \sec (e+f x)) (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{21 f}-\frac {2 c (a+a \sec (e+f x)) (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{9 f}+\frac {1}{21} \left (32 c^2\right ) \int \sec (e+f x) (a+a \sec (e+f x)) (c-c \sec (e+f x))^{3/2} \, dx\\ &=-\frac {64 c^3 (a+a \sec (e+f x)) \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{105 f}-\frac {8 c^2 (a+a \sec (e+f x)) (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{21 f}-\frac {2 c (a+a \sec (e+f x)) (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{9 f}+\frac {1}{105} \left (128 c^3\right ) \int \sec (e+f x) (a+a \sec (e+f x)) \sqrt {c-c \sec (e+f x)} \, dx\\ &=-\frac {256 c^4 (a+a \sec (e+f x)) \tan (e+f x)}{315 f \sqrt {c-c \sec (e+f x)}}-\frac {64 c^3 (a+a \sec (e+f x)) \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{105 f}-\frac {8 c^2 (a+a \sec (e+f x)) (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{21 f}-\frac {2 c (a+a \sec (e+f x)) (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{9 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.91, size = 86, normalized size = 0.53 \[ \frac {a c^3 \cos ^2\left (\frac {1}{2} (e+f x)\right ) (1617 \cos (e+f x)-642 \cos (2 (e+f x))+319 \cos (3 (e+f x))-782) \cot \left (\frac {1}{2} (e+f x)\right ) \sec ^4(e+f x) \sqrt {c-c \sec (e+f x)}}{315 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 119, normalized size = 0.73 \[ \frac {2 \, {\left (319 \, a c^{3} \cos \left (f x + e\right )^{5} + 317 \, a c^{3} \cos \left (f x + e\right )^{4} - 158 \, a c^{3} \cos \left (f x + e\right )^{3} - 26 \, a c^{3} \cos \left (f x + e\right )^{2} + 95 \, a c^{3} \cos \left (f x + e\right ) - 35 \, a c^{3}\right )} \sqrt {\frac {c \cos \left (f x + e\right ) - c}{\cos \left (f x + e\right )}}}{315 \, f \cos \left (f x + e\right )^{4} \sin \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 3.36, size = 111, normalized size = 0.68 \[ \frac {32 \, \sqrt {2} {\left (105 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{3} c^{2} + 189 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{2} c^{3} + 135 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} c^{4} + 35 \, c^{5}\right )} a c^{3}}{315 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{\frac {9}{2}} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.22, size = 83, normalized size = 0.51 \[ \frac {2 a \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {7}{2}} \left (\sin ^{3}\left (f x +e \right )\right ) \left (319 \left (\cos ^{3}\left (f x +e \right )\right )-321 \left (\cos ^{2}\left (f x +e \right )\right )+165 \cos \left (f x +e \right )-35\right )}{315 f \left (-1+\cos \left (f x +e \right )\right )^{5} \cos \left (f x +e \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 9.13, size = 483, normalized size = 2.96 \[ \frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a\,c^3\,2{}\mathrm {i}}{f}+\frac {a\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,638{}\mathrm {i}}{315\,f}\right )}{{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1}-\frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a\,c^3\,32{}\mathrm {i}}{9\,f}+\frac {a\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,32{}\mathrm {i}}{9\,f}\right )}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^4}+\frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a\,c^3\,96{}\mathrm {i}}{7\,f}+\frac {a\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,32{}\mathrm {i}}{63\,f}\right )}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^3}-\frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a\,c^3\,64{}\mathrm {i}}{5\,f}-\frac {a\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,736{}\mathrm {i}}{105\,f}\right )}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^2}+\frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a\,c^3\,8{}\mathrm {i}}{3\,f}-\frac {a\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1256{}\mathrm {i}}{315\,f}\right )}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________